/*
 * Operacion.h
 *
 *  Created on: 31/05/2011
 *      Author: wadi
 */

#ifndef OPERACION_H_
#define OPERACION_H_
#include "message.h"
#include <string>
#include <vector>

class Operation :public Message{
public:
    Operation();
    virtual ~Operation();
    void setSize(int tamanio);
    void setType(char tipoOperacion);
    char getType();
    std::string getData();
    void setData(std::string clave);
    std::vector<std::string> getTokens();
    std::vector<char> serialize();
    std::vector<char> getDataBytes();
    std::vector<char>  getDataBytes(int desde);

    void reset();
private:
    std::string data;
    std::vector< std::string> tokens;
};
#endif /* OPERACION_H_ */
